/*
 * @Author: your name
 * @Date: 2021-06-27 09:38:50
 * @LastEditTime: 2021-06-27 09:42:35
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \新建文件夹 (2)\asugcsacv\router\index.js
 */
const fs=require("fs")
const router = require("./html")
const filter=fs.readdirSync(__dirname)
console.log(filter)
module.exports=(app)=>{
    filter.forEach(item=>{
        if(item==="index.js") return
        const router=require(`./${item}`)
        app.use(router.routes())
    })
}
